<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>RaftLib: fifo.hpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">RaftLib
   &#160;<span id="projectnumber">0.3a</span>
   </div>
   <div id="projectbrief">C++ Stream Processing Template Library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_a524f484fa533a2a6c239765c656f82d.html">fifo</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">fifo.hpp</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;</div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="preprocessor">#ifndef _FIFO_HPP_</span></div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="preprocessor">#define _FIFO_HPP_  1</span></div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="preprocessor">#include &lt;cstddef&gt;</span></div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="preprocessor">#include &lt;typeinfo&gt;</span></div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="preprocessor">#include &lt;iterator&gt;</span></div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="preprocessor">#include &lt;list&gt;</span></div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="preprocessor">#include &lt;vector&gt;</span></div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="preprocessor">#include &lt;sstream&gt;</span></div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="preprocessor">#include &lt;map&gt;</span></div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="preprocessor">#include &lt;utility&gt;</span></div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="preprocessor">#include &lt;functional&gt;</span></div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="preprocessor">#include &lt;cassert&gt;</span></div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="preprocessor">#include &lt;type_traits&gt;</span></div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="preprocessor">#include &lt;stdexcept&gt;</span></div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="preprocessor">#include &quot;bufferdata.tcc&quot;</span></div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="preprocessor">#include &quot;blocked.hpp&quot;</span></div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="preprocessor">#include &quot;signalvars.hpp&quot;</span></div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;<span class="keyword">class </span><a class="code" href="class_schedule.html">Schedule</a>;</div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;<span class="keyword">class </span><a class="code" href="class_allocate.html">Allocate</a>;</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespaceraft.html">raft</a></div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;{</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;   <span class="keyword">class </span>kernel;</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;}</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;</div>
<div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="class_f_i_f_o.html">   48</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_f_i_f_o.html">FIFO</a></div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;{</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;<span class="preprocessor">#include &quot;autorelease.tcc&quot;</span></div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;   </div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;   <a class="code" href="class_f_i_f_o.html#aea969385961885a8e70732482d64fead">FIFO</a>();</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;   </div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;   <span class="keyword">virtual</span> <a class="code" href="class_f_i_f_o.html#a44d31a29b91fed5e154f26bf9df4d280">~FIFO</a>();</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;   <span class="keyword">virtual</span> std::size_t <a class="code" href="class_f_i_f_o.html#ae80b8555fc249168560c67cd0a13e574">size</a>() = 0;</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;   <span class="keyword">virtual</span> std::size_t <a class="code" href="class_f_i_f_o.html#ac34aa9afd24e536aad0a9553863b6fe6">space_avail</a>() = 0;</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;   <span class="keyword">virtual</span> std::size_t <a class="code" href="class_f_i_f_o.html#a64565d7156f6796ff14c3033387043b1">capacity</a>() = 0;</div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;</div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;   <span class="keyword">template</span> &lt; <span class="keyword">class </span>T,</div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;              <span class="keyword">typename</span> std::enable_if&lt; </div>
<div class="line"><a name="l00097"></a><span class="lineno"><a class="line" href="class_f_i_f_o.html#a43ad12d67e3611fafae4d6ed862c60b9">   97</a></span>&#160;                  std::is_pod&lt; T &gt;::value &gt;::type* = <span class="keyword">nullptr</span> &gt; T&amp; <a class="code" href="class_f_i_f_o.html#a43ad12d67e3611fafae4d6ed862c60b9">allocate</a>()</div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;   {</div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;      <span class="keywordtype">void</span> *ptr( <span class="keyword">nullptr</span> );</div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;      <a class="code" href="class_f_i_f_o.html#a60068cb00b13626e41d4b11099354ae3">local_allocate</a>( &amp;ptr );</div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;      <span class="keywordflow">return</span>( *( reinterpret_cast&lt; T* &gt;( ptr ) ) );</div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;   }</div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;   </div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;   <span class="keyword">template</span> &lt; <span class="keyword">class </span>T,</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;              <span class="keyword">class </span>... Args,</div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;              <span class="keyword">typename</span> std::enable_if&lt; </div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;               std::is_object&lt; T &gt;::value and not </div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;               std::is_fundamental&lt; T &gt;::value &gt;::type* = <span class="keyword">nullptr</span> &gt; T&amp; </div>
<div class="line"><a name="l00110"></a><span class="lineno"><a class="line" href="class_f_i_f_o.html#a9ec1becf13fcc3330e6689d3aea756e6">  110</a></span>&#160;               <a class="code" href="class_f_i_f_o.html#a9ec1becf13fcc3330e6689d3aea756e6">allocate</a>( Args&amp;&amp;... params )</div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;   {</div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;      <span class="keywordtype">void</span> *ptr( <span class="keyword">nullptr</span> );</div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;      <a class="code" href="class_f_i_f_o.html#a60068cb00b13626e41d4b11099354ae3">local_allocate</a>( &amp;ptr );</div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;      T * __attribute__((__unused__)) temp( <span class="keyword">new</span> (ptr) T( std::forward&lt; Args &gt;( params )... ) );</div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;      <span class="keywordflow">return</span>( *( reinterpret_cast&lt; T* &gt;( ptr ) ) );</div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;   }</div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;</div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_f_i_f_o.html#af37b9a289093791f4bb9e4ef4e4e271a">deallocate</a>() = 0;</div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;</div>
<div class="line"><a name="l00133"></a><span class="lineno"><a class="line" href="class_f_i_f_o.html#a8c6fa58bc6b5734c3f7fc288dd58a6e3">  133</a></span>&#160;   <span class="keyword">template</span> &lt; <span class="keyword">class</span> T &gt; <span class="keyword">auto</span> <a class="code" href="class_f_i_f_o.html#a8c6fa58bc6b5734c3f7fc288dd58a6e3">allocate_s</a>() -&gt; </div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;      autorelease&lt; T, allocatetype &gt;</div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;   {</div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;      <span class="keywordtype">void</span> *ptr( <span class="keyword">nullptr</span> );</div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;      <a class="code" href="class_f_i_f_o.html#a60068cb00b13626e41d4b11099354ae3">local_allocate</a>( &amp;ptr );</div>
<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;      <span class="keywordflow">return</span>( autorelease&lt; T, allocatetype &gt;( </div>
<div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;         reinterpret_cast&lt; T* &gt;( ptr ), (*<span class="keyword">this</span>) ) );</div>
<div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;   }</div>
<div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;   </div>
<div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;   <span class="keyword">template</span> &lt; <span class="keyword">class</span> T &gt; </div>
<div class="line"><a name="l00158"></a><span class="lineno"><a class="line" href="class_f_i_f_o.html#a8b93da58a3fd6ecd844827c4fcbd2473">  158</a></span>&#160;      <span class="keyword">auto</span> <a class="code" href="class_f_i_f_o.html#a8b93da58a3fd6ecd844827c4fcbd2473">allocate_range</a>( <span class="keyword">const</span> std::size_t n ) -&gt; </div>
<div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;         std::vector&lt; std::reference_wrapper&lt; T &gt; &gt;</div>
<div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;   {</div>
<div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;      std::vector&lt; std::reference_wrapper&lt; T &gt; &gt; output;</div>
<div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;      <span class="keywordtype">void</span> *ptr( (<span class="keywordtype">void</span>*) &amp;output );</div>
<div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;      <a class="code" href="class_f_i_f_o.html#a4acc34ebbad9df32f54ae8c618ffa0c0">local_allocate_n</a>( ptr, n );</div>
<div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;      <span class="keywordflow">return</span>( std::forward&lt;</div>
<div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;         std::vector&lt; </div>
<div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;            std::reference_wrapper&lt; T &gt; &gt; &gt;( output ) );</div>
<div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;   }</div>
<div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_f_i_f_o.html#a0bb564ddace3951ed7754a285b438ba4">send</a>( <span class="keyword">const</span> raft::signal = raft::none ) = 0;</div>
<div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;</div>
<div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_f_i_f_o.html#ac0be4de6db251e1a2e6dcc97a5d4a584">send_range</a>( <span class="keyword">const</span> raft::signal = raft::none ) = 0;</div>
<div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;</div>
<div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;   <span class="keyword">template</span> &lt; <span class="keyword">class</span> T &gt; </div>
<div class="line"><a name="l00196"></a><span class="lineno"><a class="line" href="class_f_i_f_o.html#a381974271d6c818473edd23c355f0d36">  196</a></span>&#160;   <span class="keywordtype">void</span> <a class="code" href="class_f_i_f_o.html#a381974271d6c818473edd23c355f0d36">push</a>( <span class="keyword">const</span> T &amp;item, <span class="keyword">const</span> raft::signal signal = raft::none )</div>
<div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;   {</div>
<div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;      <span class="keywordtype">void</span> *ptr( (<span class="keywordtype">void</span>*) &amp;item );</div>
<div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;      <a class="code" href="class_f_i_f_o.html#a4ef48ce2cb02e8bd5d381bb65687e6cb">local_push</a>( ptr, signal );</div>
<div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;      <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;   }</div>
<div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;   </div>
<div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;   <span class="keyword">template</span> &lt; <span class="keyword">class</span> T &gt; </div>
<div class="line"><a name="l00215"></a><span class="lineno"><a class="line" href="class_f_i_f_o.html#aa848776c8d7b4966a8531b670c429e98">  215</a></span>&#160;   <span class="keywordtype">void</span> <a class="code" href="class_f_i_f_o.html#aa848776c8d7b4966a8531b670c429e98">push</a>( T &amp;&amp;item, <span class="keyword">const</span> raft::signal signal = raft::none )</div>
<div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160;   {</div>
<div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;      <span class="keywordtype">void</span> *ptr( reinterpret_cast&lt; void* &gt;(  &amp;item ) );</div>
<div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;      <a class="code" href="class_f_i_f_o.html#a4ef48ce2cb02e8bd5d381bb65687e6cb">local_push</a>( ptr, signal );</div>
<div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;      <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160;   }</div>
<div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;</div>
<div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;   <span class="keyword">template</span>&lt; <span class="keyword">class</span> iterator_type &gt;</div>
<div class="line"><a name="l00236"></a><span class="lineno"><a class="line" href="class_f_i_f_o.html#a922b94b854cc9e3ee37fbd447982f663">  236</a></span>&#160;   <span class="keywordtype">void</span> <a class="code" href="class_f_i_f_o.html#a922b94b854cc9e3ee37fbd447982f663">insert</a>(   iterator_type begin,</div>
<div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;                  iterator_type end,</div>
<div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;                  <span class="keyword">const</span> raft::signal signal = raft::none )</div>
<div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160;   {</div>
<div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160;      <span class="keywordtype">void</span> *begin_ptr( reinterpret_cast&lt; void* &gt;( &amp;begin ) );</div>
<div class="line"><a name="l00241"></a><span class="lineno">  241</span>&#160;      <span class="keywordtype">void</span> *end_ptr  ( reinterpret_cast&lt; void* &gt;( &amp;end   ) );</div>
<div class="line"><a name="l00242"></a><span class="lineno">  242</span>&#160;      <a class="code" href="class_f_i_f_o.html#ab3e42eddd74c0c5ce4a640c0cc022245">local_insert</a>( begin_ptr, end_ptr, signal, <span class="keyword">typeid</span>( iterator_type ).hash_code() );</div>
<div class="line"><a name="l00243"></a><span class="lineno">  243</span>&#160;      <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160;   }</div>
<div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160;   </div>
<div class="line"><a name="l00253"></a><span class="lineno">  253</span>&#160;   <span class="keyword">template</span>&lt; <span class="keyword">class</span> T &gt;</div>
<div class="line"><a name="l00254"></a><span class="lineno"><a class="line" href="class_f_i_f_o.html#a0607b6c931ed1fab618e637af617dd15">  254</a></span>&#160;   <span class="keywordtype">void</span> <a class="code" href="class_f_i_f_o.html#a0607b6c931ed1fab618e637af617dd15">pop</a>( T &amp;item, raft::signal *signal = <span class="keyword">nullptr</span> )</div>
<div class="line"><a name="l00255"></a><span class="lineno">  255</span>&#160;   {</div>
<div class="line"><a name="l00256"></a><span class="lineno">  256</span>&#160;      <span class="keywordtype">void</span> *ptr( reinterpret_cast&lt; void* &gt;( &amp;item ) );</div>
<div class="line"><a name="l00257"></a><span class="lineno">  257</span>&#160;      <a class="code" href="class_f_i_f_o.html#ad7ca430a795bbf0904c041dcdfd836a4">local_pop</a>( ptr, signal );</div>
<div class="line"><a name="l00258"></a><span class="lineno">  258</span>&#160;      <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00259"></a><span class="lineno">  259</span>&#160;   }</div>
<div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160;   </div>
<div class="line"><a name="l00261"></a><span class="lineno">  261</span>&#160;<span class="preprocessor">#if 0</span></div>
<div class="line"><a name="l00262"></a><span class="lineno">  262</span>&#160;   <span class="keyword">template</span>&lt; <span class="keyword">class</span> T &gt;</div>
<div class="line"><a name="l00263"></a><span class="lineno">  263</span>&#160;   <span class="keyword">auto</span> pop_s() -&gt; autorelease&lt; T, poptype &gt;</div>
<div class="line"><a name="l00264"></a><span class="lineno">  264</span>&#160;   {</div>
<div class="line"><a name="l00265"></a><span class="lineno">  265</span>&#160;      <span class="keywordflow">return</span>( autorelease&lt; T, poptype &gt;( (*<span class="keyword">this</span>) ) );</div>
<div class="line"><a name="l00266"></a><span class="lineno">  266</span>&#160;   }</div>
<div class="line"><a name="l00267"></a><span class="lineno">  267</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00268"></a><span class="lineno">  268</span>&#160;</div>
<div class="line"><a name="l00280"></a><span class="lineno">  280</span>&#160;   <span class="keyword">template</span>&lt; <span class="keyword">class</span> T &gt;</div>
<div class="line"><a name="l00281"></a><span class="lineno"><a class="line" href="class_f_i_f_o.html#a23be63e817ff487d32013064e752f02f">  281</a></span>&#160;   <span class="keywordtype">void</span> <a class="code" href="class_f_i_f_o.html#a23be63e817ff487d32013064e752f02f">pop_range</a>( pop_range_t&lt; T &gt;  &amp;items,</div>
<div class="line"><a name="l00282"></a><span class="lineno">  282</span>&#160;                   <span class="keyword">const</span> std::size_t n_items )</div>
<div class="line"><a name="l00283"></a><span class="lineno">  283</span>&#160;   {</div>
<div class="line"><a name="l00284"></a><span class="lineno">  284</span>&#160;      <span class="keywordtype">void</span> *ptr_items( (<span class="keywordtype">void</span>*)&amp;items );</div>
<div class="line"><a name="l00285"></a><span class="lineno">  285</span>&#160;      <a class="code" href="class_f_i_f_o.html#a6edc6a38e9cb2e13eae8afe0703236d7">local_pop_range</a>( ptr_items, n_items );</div>
<div class="line"><a name="l00286"></a><span class="lineno">  286</span>&#160;      <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00287"></a><span class="lineno">  287</span>&#160;   }</div>
<div class="line"><a name="l00288"></a><span class="lineno">  288</span>&#160;</div>
<div class="line"><a name="l00297"></a><span class="lineno">  297</span>&#160;   <span class="keyword">template</span>&lt; <span class="keyword">class</span> T &gt;</div>
<div class="line"><a name="l00298"></a><span class="lineno"><a class="line" href="class_f_i_f_o.html#a16fd3ad9300e6ea9deb88677181c2a3c">  298</a></span>&#160;   T&amp; <a class="code" href="class_f_i_f_o.html#a16fd3ad9300e6ea9deb88677181c2a3c">peek</a>( raft::signal *signal = <span class="keyword">nullptr</span> )</div>
<div class="line"><a name="l00299"></a><span class="lineno">  299</span>&#160;   {</div>
<div class="line"><a name="l00300"></a><span class="lineno">  300</span>&#160;      <span class="keywordtype">void</span> *ptr( <span class="keyword">nullptr</span> );</div>
<div class="line"><a name="l00301"></a><span class="lineno">  301</span>&#160;      <a class="code" href="class_f_i_f_o.html#afc960790e2803da85fa24e64c61c38b5">local_peek</a>( &amp;ptr, signal );</div>
<div class="line"><a name="l00302"></a><span class="lineno">  302</span>&#160;      <span class="keywordflow">return</span>( *( reinterpret_cast&lt; T* &gt;( ptr ) ) );</div>
<div class="line"><a name="l00303"></a><span class="lineno">  303</span>&#160;   }</div>
<div class="line"><a name="l00304"></a><span class="lineno">  304</span>&#160;</div>
<div class="line"><a name="l00313"></a><span class="lineno">  313</span>&#160;   <span class="keyword">template</span>&lt; <span class="keyword">class</span> T &gt;</div>
<div class="line"><a name="l00314"></a><span class="lineno"><a class="line" href="class_f_i_f_o.html#a4eebb934a2d29c17916eb21db85fd39d">  314</a></span>&#160;   <span class="keyword">auto</span>  <a class="code" href="class_f_i_f_o.html#a4eebb934a2d29c17916eb21db85fd39d">peek_range</a>( <span class="keyword">const</span> std::size_t n ) -&gt; </div>
<div class="line"><a name="l00315"></a><span class="lineno">  315</span>&#160;      autorelease&lt; T, peekrange &gt;</div>
<div class="line"><a name="l00316"></a><span class="lineno">  316</span>&#160;   {</div>
<div class="line"><a name="l00317"></a><span class="lineno">  317</span>&#160;      <span class="keywordtype">void</span> *ptr = <span class="keyword">nullptr</span>;</div>
<div class="line"><a name="l00318"></a><span class="lineno">  318</span>&#160;      <span class="keywordtype">void</span> *sig = <span class="keyword">nullptr</span>;</div>
<div class="line"><a name="l00319"></a><span class="lineno">  319</span>&#160;      std::size_t curr_pointer_loc( 0 );</div>
<div class="line"><a name="l00320"></a><span class="lineno">  320</span>&#160;      <a class="code" href="class_f_i_f_o.html#a8056adb06fadf2b7aae4d9858795be45">local_peek_range</a>( &amp;ptr, &amp;sig, n, curr_pointer_loc );</div>
<div class="line"><a name="l00321"></a><span class="lineno">  321</span>&#160;      <span class="keywordflow">return</span>( autorelease&lt; T, peekrange &gt;( </div>
<div class="line"><a name="l00322"></a><span class="lineno">  322</span>&#160;         (*<span class="keyword">this</span>),</div>
<div class="line"><a name="l00323"></a><span class="lineno">  323</span>&#160;         reinterpret_cast&lt; T * const &gt;( ptr ),</div>
<div class="line"><a name="l00324"></a><span class="lineno">  324</span>&#160;         reinterpret_cast&lt; Buffer::Signal* &gt;( sig ),</div>
<div class="line"><a name="l00325"></a><span class="lineno">  325</span>&#160;         curr_pointer_loc,</div>
<div class="line"><a name="l00326"></a><span class="lineno">  326</span>&#160;         n ) );</div>
<div class="line"><a name="l00327"></a><span class="lineno">  327</span>&#160;   }</div>
<div class="line"><a name="l00337"></a><span class="lineno">  337</span>&#160;   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_f_i_f_o.html#aa0cbb6c4a5b8783af38c6deb1a6f651e">unpeek</a>() = 0;</div>
<div class="line"><a name="l00338"></a><span class="lineno">  338</span>&#160;</div>
<div class="line"><a name="l00351"></a><span class="lineno">  351</span>&#160;   <span class="keyword">template</span> &lt; <span class="keyword">class </span>T,</div>
<div class="line"><a name="l00352"></a><span class="lineno">  352</span>&#160;              <span class="keyword">typename</span> std::enable_if&lt; </div>
<div class="line"><a name="l00353"></a><span class="lineno">  353</span>&#160;                  std::is_pod&lt; T &gt;::value &gt;::type* = <span class="keyword">nullptr</span> &gt;</div>
<div class="line"><a name="l00354"></a><span class="lineno"><a class="line" href="class_f_i_f_o.html#ab58f3828e61026c45f8aacb13160aa81">  354</a></span>&#160;   <span class="keywordtype">void</span> <a class="code" href="class_f_i_f_o.html#ab58f3828e61026c45f8aacb13160aa81">recycle</a>( <span class="keyword">const</span> T &amp;t, <span class="keyword">const</span> std::size_t range = 1 )</div>
<div class="line"><a name="l00355"></a><span class="lineno">  355</span>&#160;   {</div>
<div class="line"><a name="l00356"></a><span class="lineno">  356</span>&#160;      <a class="code" href="class_f_i_f_o.html#a1f898343d6c6caf98f5434964d43f627">local_recycle</a>( range ); </div>
<div class="line"><a name="l00357"></a><span class="lineno">  357</span>&#160;   }</div>
<div class="line"><a name="l00358"></a><span class="lineno">  358</span>&#160;   </div>
<div class="line"><a name="l00359"></a><span class="lineno">  359</span>&#160;   <span class="keyword">template</span> &lt; <span class="keyword">class </span>T,</div>
<div class="line"><a name="l00360"></a><span class="lineno">  360</span>&#160;              <span class="keyword">typename</span> std::enable_if&lt; </div>
<div class="line"><a name="l00361"></a><span class="lineno">  361</span>&#160;               std::is_object&lt; T &gt;::value and not</div>
<div class="line"><a name="l00362"></a><span class="lineno">  362</span>&#160;               std::is_fundamental&lt; T &gt;::value &gt;::type* = <span class="keyword">nullptr</span> &gt;</div>
<div class="line"><a name="l00363"></a><span class="lineno">  363</span>&#160;   <span class="keywordtype">void</span> <a class="code" href="class_f_i_f_o.html#ab58f3828e61026c45f8aacb13160aa81">recycle</a>( <span class="keyword">const</span> T &amp;t, <span class="keyword">const</span> std::size_t range = 1 )</div>
<div class="line"><a name="l00364"></a><span class="lineno">  364</span>&#160;   {</div>
<div class="line"><a name="l00365"></a><span class="lineno">  365</span>&#160;      recyclefunc f( []( <span class="keywordtype">void</span> *ptr )</div>
<div class="line"><a name="l00366"></a><span class="lineno">  366</span>&#160;      {</div>
<div class="line"><a name="l00367"></a><span class="lineno">  367</span>&#160;         T *ptr_cast( reinterpret_cast&lt; T* &gt;( ptr ) );</div>
<div class="line"><a name="l00368"></a><span class="lineno">  368</span>&#160;         ptr_cast-&gt;~T();</div>
<div class="line"><a name="l00369"></a><span class="lineno">  369</span>&#160;      } );</div>
<div class="line"><a name="l00370"></a><span class="lineno">  370</span>&#160;      <a class="code" href="class_f_i_f_o.html#a1f898343d6c6caf98f5434964d43f627">local_recycle</a>( range, f );</div>
<div class="line"><a name="l00371"></a><span class="lineno">  371</span>&#160;   }</div>
<div class="line"><a name="l00372"></a><span class="lineno">  372</span>&#160;</div>
<div class="line"><a name="l00373"></a><span class="lineno">  373</span>&#160;   </div>
<div class="line"><a name="l00374"></a><span class="lineno">  374</span>&#160;   </div>
<div class="line"><a name="l00383"></a><span class="lineno">  383</span>&#160;   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_f_i_f_o.html#aa372ba61179c80ce8355aadbdbbad844">get_zero_read_stats</a>( <a class="code" href="union_blocked.html">Blocked</a> &amp;copy );</div>
<div class="line"><a name="l00384"></a><span class="lineno">  384</span>&#160;</div>
<div class="line"><a name="l00393"></a><span class="lineno">  393</span>&#160;   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_f_i_f_o.html#a6dd419cc4b99bd13f6b018145844bdd2">get_zero_write_stats</a>( <a class="code" href="union_blocked.html">Blocked</a> &amp;copy );</div>
<div class="line"><a name="l00394"></a><span class="lineno">  394</span>&#160;</div>
<div class="line"><a name="l00411"></a><span class="lineno">  411</span>&#160;   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_f_i_f_o.html#a27264d14b86811604a54e0d30aa22c33">resize</a>( <span class="keyword">const</span> std::size_t n_items, </div>
<div class="line"><a name="l00412"></a><span class="lineno">  412</span>&#160;                        <span class="keyword">const</span> std::size_t align, </div>
<div class="line"><a name="l00413"></a><span class="lineno">  413</span>&#160;                        <span class="keyword">volatile</span> <span class="keywordtype">bool</span> &amp;exit_alloc ) = 0;</div>
<div class="line"><a name="l00414"></a><span class="lineno">  414</span>&#160;</div>
<div class="line"><a name="l00423"></a><span class="lineno">  423</span>&#160;   <span class="keyword">virtual</span> <span class="keywordtype">float</span> <a class="code" href="class_f_i_f_o.html#a4d44784c43a4026508e85982eb3174c7">get_frac_write_blocked</a>() = 0;</div>
<div class="line"><a name="l00424"></a><span class="lineno">  424</span>&#160;</div>
<div class="line"><a name="l00433"></a><span class="lineno">  433</span>&#160;   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_f_i_f_o.html#af65e8231c0d1a7cdf250f2ce57f3723f">invalidate</a>() = 0;</div>
<div class="line"><a name="l00434"></a><span class="lineno">  434</span>&#160;   </div>
<div class="line"><a name="l00442"></a><span class="lineno">  442</span>&#160;   <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="class_f_i_f_o.html#a01bc45169bff5253496dc6bf6f902f89">is_invalid</a>() = 0;</div>
<div class="line"><a name="l00443"></a><span class="lineno">  443</span>&#160;<span class="keyword">protected</span>:</div>
<div class="line"><a name="l00444"></a><span class="lineno">  444</span>&#160;</div>
<div class="line"><a name="l00445"></a><span class="lineno">  445</span>&#160;   <span class="keyword">using</span> recyclefunc = </div>
<div class="line"><a name="l00446"></a><span class="lineno">  446</span>&#160;      std::function&lt; void ( void* ) &gt;;</div>
<div class="line"><a name="l00447"></a><span class="lineno">  447</span>&#160;   </div>
<div class="line"><a name="l00454"></a><span class="lineno">  454</span>&#160;   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_f_i_f_o.html#aa9c1f679b4e2585047af2c09a2518209">set_src_kernel</a>( <a class="code" href="classraft_1_1kernel.html">raft::kernel</a> * <span class="keyword">const</span> k ) = 0;</div>
<div class="line"><a name="l00461"></a><span class="lineno">  461</span>&#160;   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_f_i_f_o.html#a11422695c75c05ad2c60e662553f2667">set_dst_kernel</a>( <a class="code" href="classraft_1_1kernel.html">raft::kernel</a> * <span class="keyword">const</span> k ) = 0;</div>
<div class="line"><a name="l00467"></a><span class="lineno">  467</span>&#160;   <span class="keyword">virtual</span> raft::signal <a class="code" href="class_f_i_f_o.html#a36a7519af834c969d49f3d9ae7080af9">signal_peek</a>() = 0;</div>
<div class="line"><a name="l00472"></a><span class="lineno">  472</span>&#160;   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_f_i_f_o.html#ad6b606d47361489007490e0e0b4e2aa1">signal_pop</a>() = 0;</div>
<div class="line"><a name="l00473"></a><span class="lineno">  473</span>&#160;</div>
<div class="line"><a name="l00482"></a><span class="lineno">  482</span>&#160;   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_f_i_f_o.html#ae7e91c74078cd52cdfc6f3609b83c8eb">inline_signal_send</a>( <span class="keyword">const</span> raft::signal sig ) = 0;</div>
<div class="line"><a name="l00483"></a><span class="lineno">  483</span>&#160;</div>
<div class="line"><a name="l00495"></a><span class="lineno">  495</span>&#160;   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_f_i_f_o.html#a60068cb00b13626e41d4b11099354ae3">local_allocate</a>( <span class="keywordtype">void</span> **ptr ) = 0;</div>
<div class="line"><a name="l00496"></a><span class="lineno">  496</span>&#160;   </div>
<div class="line"><a name="l00503"></a><span class="lineno">  503</span>&#160;   <span class="keyword">virtual</span> <span class="keywordtype">void</span>  <a class="code" href="class_f_i_f_o.html#a4acc34ebbad9df32f54ae8c618ffa0c0">local_allocate_n</a>( <span class="keywordtype">void</span> *ptr, <span class="keyword">const</span> std::size_t n ) = 0;</div>
<div class="line"><a name="l00513"></a><span class="lineno">  513</span>&#160;   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_f_i_f_o.html#a4ef48ce2cb02e8bd5d381bb65687e6cb">local_push</a>( <span class="keywordtype">void</span> *ptr, <span class="keyword">const</span> raft::signal &amp;signal ) = 0;</div>
<div class="line"><a name="l00514"></a><span class="lineno">  514</span>&#160;</div>
<div class="line"><a name="l00523"></a><span class="lineno">  523</span>&#160;   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_f_i_f_o.html#ab3e42eddd74c0c5ce4a640c0cc022245">local_insert</a>( <span class="keywordtype">void</span> *ptr_begin, </div>
<div class="line"><a name="l00524"></a><span class="lineno">  524</span>&#160;                              <span class="keywordtype">void</span> *ptr_end, </div>
<div class="line"><a name="l00525"></a><span class="lineno">  525</span>&#160;                              <span class="keyword">const</span> raft::signal &amp;signal,</div>
<div class="line"><a name="l00526"></a><span class="lineno">  526</span>&#160;                              <span class="keyword">const</span> std::size_t iterator_type ) = 0;</div>
<div class="line"><a name="l00527"></a><span class="lineno">  527</span>&#160;  </div>
<div class="line"><a name="l00534"></a><span class="lineno">  534</span>&#160;   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_f_i_f_o.html#ad7ca430a795bbf0904c041dcdfd836a4">local_pop</a>( <span class="keywordtype">void</span> *ptr, raft::signal *signal ) = 0;</div>
<div class="line"><a name="l00535"></a><span class="lineno">  535</span>&#160;</div>
<div class="line"><a name="l00542"></a><span class="lineno">  542</span>&#160;   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_f_i_f_o.html#a6edc6a38e9cb2e13eae8afe0703236d7">local_pop_range</a>( <span class="keywordtype">void</span> *ptr_data,</div>
<div class="line"><a name="l00543"></a><span class="lineno">  543</span>&#160;                                 std::size_t n_items ) = 0;</div>
<div class="line"><a name="l00550"></a><span class="lineno">  550</span>&#160;   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_f_i_f_o.html#afc960790e2803da85fa24e64c61c38b5">local_peek</a>( <span class="keywordtype">void</span> **ptr,</div>
<div class="line"><a name="l00551"></a><span class="lineno">  551</span>&#160;                            raft::signal *signal ) = 0;</div>
<div class="line"><a name="l00563"></a><span class="lineno">  563</span>&#160;   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_f_i_f_o.html#a8056adb06fadf2b7aae4d9858795be45">local_peek_range</a>( <span class="keywordtype">void</span> **ptr, </div>
<div class="line"><a name="l00564"></a><span class="lineno">  564</span>&#160;                                  <span class="keywordtype">void</span> **sig,</div>
<div class="line"><a name="l00565"></a><span class="lineno">  565</span>&#160;                                  <span class="keyword">const</span> std::size_t n_items,</div>
<div class="line"><a name="l00566"></a><span class="lineno">  566</span>&#160;                                  std::size_t &amp;curr_pointer_loc ) = 0;</div>
<div class="line"><a name="l00567"></a><span class="lineno">  567</span>&#160;   </div>
<div class="line"><a name="l00573"></a><span class="lineno">  573</span>&#160;   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_f_i_f_o.html#a1f898343d6c6caf98f5434964d43f627">local_recycle</a>( <span class="keyword">const</span> std::size_t range ) = 0;</div>
<div class="line"><a name="l00574"></a><span class="lineno">  574</span>&#160;   </div>
<div class="line"><a name="l00575"></a><span class="lineno">  575</span>&#160;   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_f_i_f_o.html#a1f898343d6c6caf98f5434964d43f627">local_recycle</a>( <span class="keyword">const</span> std::size_t range, </div>
<div class="line"><a name="l00576"></a><span class="lineno">  576</span>&#160;                               recyclefunc       func ) = 0;</div>
<div class="line"><a name="l00577"></a><span class="lineno">  577</span>&#160;</div>
<div class="line"><a name="l00578"></a><span class="lineno">  578</span>&#160;   </div>
<div class="line"><a name="l00582"></a><span class="lineno"><a class="line" href="class_f_i_f_o.html#aae5808dc2e987bf17ef42196457a654d">  582</a></span>&#160;   <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="class_schedule.html">Schedule</a>;</div>
<div class="line"><a name="l00583"></a><span class="lineno">  583</span>&#160;   <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="class_allocate.html">Allocate</a>;</div>
<div class="line"><a name="l00584"></a><span class="lineno">  584</span>&#160;};</div>
<div class="line"><a name="l00585"></a><span class="lineno">  585</span>&#160;</div>
<div class="line"><a name="l00586"></a><span class="lineno">  586</span>&#160;</div>
<div class="line"><a name="l00587"></a><span class="lineno">  587</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* END _FIFO_HPP_ */</span><span class="preprocessor"></span></div>
<div class="ttc" id="class_f_i_f_o_html_ae7e91c74078cd52cdfc6f3609b83c8eb"><div class="ttname"><a href="class_f_i_f_o.html#ae7e91c74078cd52cdfc6f3609b83c8eb">FIFO::inline_signal_send</a></div><div class="ttdeci">virtual void inline_signal_send(const raft::signal sig)=0</div></div>
<div class="ttc" id="class_f_i_f_o_html_a64565d7156f6796ff14c3033387043b1"><div class="ttname"><a href="class_f_i_f_o.html#a64565d7156f6796ff14c3033387043b1">FIFO::capacity</a></div><div class="ttdeci">virtual std::size_t capacity()=0</div></div>
<div class="ttc" id="class_f_i_f_o_html_ab58f3828e61026c45f8aacb13160aa81"><div class="ttname"><a href="class_f_i_f_o.html#ab58f3828e61026c45f8aacb13160aa81">FIFO::recycle</a></div><div class="ttdeci">void recycle(const T &amp;t, const std::size_t range=1)</div><div class="ttdef"><b>Definition:</b> fifo.hpp:354</div></div>
<div class="ttc" id="class_f_i_f_o_html_aa372ba61179c80ce8355aadbdbbad844"><div class="ttname"><a href="class_f_i_f_o.html#aa372ba61179c80ce8355aadbdbbad844">FIFO::get_zero_read_stats</a></div><div class="ttdeci">virtual void get_zero_read_stats(Blocked &amp;copy)</div><div class="ttdef"><b>Definition:</b> fifo.cpp:32</div></div>
<div class="ttc" id="class_f_i_f_o_html_a0bb564ddace3951ed7754a285b438ba4"><div class="ttname"><a href="class_f_i_f_o.html#a0bb564ddace3951ed7754a285b438ba4">FIFO::send</a></div><div class="ttdeci">virtual void send(const raft::signal=raft::none)=0</div></div>
<div class="ttc" id="class_f_i_f_o_html_a27264d14b86811604a54e0d30aa22c33"><div class="ttname"><a href="class_f_i_f_o.html#a27264d14b86811604a54e0d30aa22c33">FIFO::resize</a></div><div class="ttdeci">virtual void resize(const std::size_t n_items, const std::size_t align, volatile bool &amp;exit_alloc)=0</div></div>
<div class="ttc" id="class_f_i_f_o_html_a381974271d6c818473edd23c355f0d36"><div class="ttname"><a href="class_f_i_f_o.html#a381974271d6c818473edd23c355f0d36">FIFO::push</a></div><div class="ttdeci">void push(const T &amp;item, const raft::signal signal=raft::none)</div><div class="ttdef"><b>Definition:</b> fifo.hpp:196</div></div>
<div class="ttc" id="class_f_i_f_o_html_a4d44784c43a4026508e85982eb3174c7"><div class="ttname"><a href="class_f_i_f_o.html#a4d44784c43a4026508e85982eb3174c7">FIFO::get_frac_write_blocked</a></div><div class="ttdeci">virtual float get_frac_write_blocked()=0</div></div>
<div class="ttc" id="class_f_i_f_o_html_a8b93da58a3fd6ecd844827c4fcbd2473"><div class="ttname"><a href="class_f_i_f_o.html#a8b93da58a3fd6ecd844827c4fcbd2473">FIFO::allocate_range</a></div><div class="ttdeci">auto allocate_range(const std::size_t n) -&gt; std::vector&lt; std::reference_wrapper&lt; T &gt; &gt;</div><div class="ttdef"><b>Definition:</b> fifo.hpp:158</div></div>
<div class="ttc" id="class_f_i_f_o_html_ae80b8555fc249168560c67cd0a13e574"><div class="ttname"><a href="class_f_i_f_o.html#ae80b8555fc249168560c67cd0a13e574">FIFO::size</a></div><div class="ttdeci">virtual std::size_t size()=0</div></div>
<div class="ttc" id="union_blocked_html"><div class="ttname"><a href="union_blocked.html">Blocked</a></div><div class="ttdef"><b>Definition:</b> blocked.hpp:24</div></div>
<div class="ttc" id="class_f_i_f_o_html_ac0be4de6db251e1a2e6dcc97a5d4a584"><div class="ttname"><a href="class_f_i_f_o.html#ac0be4de6db251e1a2e6dcc97a5d4a584">FIFO::send_range</a></div><div class="ttdeci">virtual void send_range(const raft::signal=raft::none)=0</div></div>
<div class="ttc" id="class_f_i_f_o_html_a60068cb00b13626e41d4b11099354ae3"><div class="ttname"><a href="class_f_i_f_o.html#a60068cb00b13626e41d4b11099354ae3">FIFO::local_allocate</a></div><div class="ttdeci">virtual void local_allocate(void **ptr)=0</div></div>
<div class="ttc" id="class_f_i_f_o_html_a0607b6c931ed1fab618e637af617dd15"><div class="ttname"><a href="class_f_i_f_o.html#a0607b6c931ed1fab618e637af617dd15">FIFO::pop</a></div><div class="ttdeci">void pop(T &amp;item, raft::signal *signal=nullptr)</div><div class="ttdef"><b>Definition:</b> fifo.hpp:254</div></div>
<div class="ttc" id="class_f_i_f_o_html_a8c6fa58bc6b5734c3f7fc288dd58a6e3"><div class="ttname"><a href="class_f_i_f_o.html#a8c6fa58bc6b5734c3f7fc288dd58a6e3">FIFO::allocate_s</a></div><div class="ttdeci">auto allocate_s() -&gt; autorelease&lt; T, allocatetype &gt;</div><div class="ttdef"><b>Definition:</b> fifo.hpp:133</div></div>
<div class="ttc" id="class_f_i_f_o_html_aa848776c8d7b4966a8531b670c429e98"><div class="ttname"><a href="class_f_i_f_o.html#aa848776c8d7b4966a8531b670c429e98">FIFO::push</a></div><div class="ttdeci">void push(T &amp;&amp;item, const raft::signal signal=raft::none)</div><div class="ttdef"><b>Definition:</b> fifo.hpp:215</div></div>
<div class="ttc" id="class_f_i_f_o_html_aea969385961885a8e70732482d64fead"><div class="ttname"><a href="class_f_i_f_o.html#aea969385961885a8e70732482d64fead">FIFO::FIFO</a></div><div class="ttdeci">FIFO()</div><div class="ttdef"><b>Definition:</b> fifo.cpp:22</div></div>
<div class="ttc" id="class_f_i_f_o_html_ad7ca430a795bbf0904c041dcdfd836a4"><div class="ttname"><a href="class_f_i_f_o.html#ad7ca430a795bbf0904c041dcdfd836a4">FIFO::local_pop</a></div><div class="ttdeci">virtual void local_pop(void *ptr, raft::signal *signal)=0</div></div>
<div class="ttc" id="class_f_i_f_o_html_a4acc34ebbad9df32f54ae8c618ffa0c0"><div class="ttname"><a href="class_f_i_f_o.html#a4acc34ebbad9df32f54ae8c618ffa0c0">FIFO::local_allocate_n</a></div><div class="ttdeci">virtual void local_allocate_n(void *ptr, const std::size_t n)=0</div></div>
<div class="ttc" id="class_f_i_f_o_html_a16fd3ad9300e6ea9deb88677181c2a3c"><div class="ttname"><a href="class_f_i_f_o.html#a16fd3ad9300e6ea9deb88677181c2a3c">FIFO::peek</a></div><div class="ttdeci">T &amp; peek(raft::signal *signal=nullptr)</div><div class="ttdef"><b>Definition:</b> fifo.hpp:298</div></div>
<div class="ttc" id="class_f_i_f_o_html_aa0cbb6c4a5b8783af38c6deb1a6f651e"><div class="ttname"><a href="class_f_i_f_o.html#aa0cbb6c4a5b8783af38c6deb1a6f651e">FIFO::unpeek</a></div><div class="ttdeci">virtual void unpeek()=0</div></div>
<div class="ttc" id="class_f_i_f_o_html_ad6b606d47361489007490e0e0b4e2aa1"><div class="ttname"><a href="class_f_i_f_o.html#ad6b606d47361489007490e0e0b4e2aa1">FIFO::signal_pop</a></div><div class="ttdeci">virtual void signal_pop()=0</div></div>
<div class="ttc" id="class_f_i_f_o_html_a4ef48ce2cb02e8bd5d381bb65687e6cb"><div class="ttname"><a href="class_f_i_f_o.html#a4ef48ce2cb02e8bd5d381bb65687e6cb">FIFO::local_push</a></div><div class="ttdeci">virtual void local_push(void *ptr, const raft::signal &amp;signal)=0</div></div>
<div class="ttc" id="class_f_i_f_o_html_ac34aa9afd24e536aad0a9553863b6fe6"><div class="ttname"><a href="class_f_i_f_o.html#ac34aa9afd24e536aad0a9553863b6fe6">FIFO::space_avail</a></div><div class="ttdeci">virtual std::size_t space_avail()=0</div></div>
<div class="ttc" id="class_f_i_f_o_html_a44d31a29b91fed5e154f26bf9df4d280"><div class="ttname"><a href="class_f_i_f_o.html#a44d31a29b91fed5e154f26bf9df4d280">FIFO::~FIFO</a></div><div class="ttdeci">virtual ~FIFO()</div><div class="ttdef"><b>Definition:</b> fifo.cpp:27</div></div>
<div class="ttc" id="class_allocate_html"><div class="ttname"><a href="class_allocate.html">Allocate</a></div><div class="ttdef"><b>Definition:</b> allocate.hpp:54</div></div>
<div class="ttc" id="class_f_i_f_o_html_a922b94b854cc9e3ee37fbd447982f663"><div class="ttname"><a href="class_f_i_f_o.html#a922b94b854cc9e3ee37fbd447982f663">FIFO::insert</a></div><div class="ttdeci">void insert(iterator_type begin, iterator_type end, const raft::signal signal=raft::none)</div><div class="ttdef"><b>Definition:</b> fifo.hpp:236</div></div>
<div class="ttc" id="class_f_i_f_o_html_aa9c1f679b4e2585047af2c09a2518209"><div class="ttname"><a href="class_f_i_f_o.html#aa9c1f679b4e2585047af2c09a2518209">FIFO::set_src_kernel</a></div><div class="ttdeci">virtual void set_src_kernel(raft::kernel *const k)=0</div></div>
<div class="ttc" id="class_f_i_f_o_html_a9ec1becf13fcc3330e6689d3aea756e6"><div class="ttname"><a href="class_f_i_f_o.html#a9ec1becf13fcc3330e6689d3aea756e6">FIFO::allocate</a></div><div class="ttdeci">T &amp; allocate(Args &amp;&amp;...params)</div><div class="ttdef"><b>Definition:</b> fifo.hpp:110</div></div>
<div class="ttc" id="class_schedule_html"><div class="ttname"><a href="class_schedule.html">Schedule</a></div><div class="ttdef"><b>Definition:</b> schedule.hpp:34</div></div>
<div class="ttc" id="class_f_i_f_o_html_af65e8231c0d1a7cdf250f2ce57f3723f"><div class="ttname"><a href="class_f_i_f_o.html#af65e8231c0d1a7cdf250f2ce57f3723f">FIFO::invalidate</a></div><div class="ttdeci">virtual void invalidate()=0</div></div>
<div class="ttc" id="class_f_i_f_o_html_af37b9a289093791f4bb9e4ef4e4e271a"><div class="ttname"><a href="class_f_i_f_o.html#af37b9a289093791f4bb9e4ef4e4e271a">FIFO::deallocate</a></div><div class="ttdeci">virtual void deallocate()=0</div></div>
<div class="ttc" id="classraft_1_1kernel_html"><div class="ttname"><a href="classraft_1_1kernel.html">raft::kernel</a></div><div class="ttdef"><b>Definition:</b> kernel.hpp:57</div></div>
<div class="ttc" id="namespaceraft_html"><div class="ttname"><a href="namespaceraft.html">raft</a></div><div class="ttdef"><b>Definition:</b> globalmap.cpp:3</div></div>
<div class="ttc" id="class_f_i_f_o_html_a36a7519af834c969d49f3d9ae7080af9"><div class="ttname"><a href="class_f_i_f_o.html#a36a7519af834c969d49f3d9ae7080af9">FIFO::signal_peek</a></div><div class="ttdeci">virtual raft::signal signal_peek()=0</div></div>
<div class="ttc" id="class_f_i_f_o_html_a01bc45169bff5253496dc6bf6f902f89"><div class="ttname"><a href="class_f_i_f_o.html#a01bc45169bff5253496dc6bf6f902f89">FIFO::is_invalid</a></div><div class="ttdeci">virtual bool is_invalid()=0</div></div>
<div class="ttc" id="class_f_i_f_o_html_a6dd419cc4b99bd13f6b018145844bdd2"><div class="ttname"><a href="class_f_i_f_o.html#a6dd419cc4b99bd13f6b018145844bdd2">FIFO::get_zero_write_stats</a></div><div class="ttdeci">virtual void get_zero_write_stats(Blocked &amp;copy)</div><div class="ttdef"><b>Definition:</b> fifo.cpp:39</div></div>
<div class="ttc" id="class_f_i_f_o_html"><div class="ttname"><a href="class_f_i_f_o.html">FIFO</a></div><div class="ttdef"><b>Definition:</b> fifo.hpp:48</div></div>
<div class="ttc" id="class_f_i_f_o_html_a23be63e817ff487d32013064e752f02f"><div class="ttname"><a href="class_f_i_f_o.html#a23be63e817ff487d32013064e752f02f">FIFO::pop_range</a></div><div class="ttdeci">void pop_range(pop_range_t&lt; T &gt; &amp;items, const std::size_t n_items)</div><div class="ttdef"><b>Definition:</b> fifo.hpp:281</div></div>
<div class="ttc" id="class_f_i_f_o_html_a11422695c75c05ad2c60e662553f2667"><div class="ttname"><a href="class_f_i_f_o.html#a11422695c75c05ad2c60e662553f2667">FIFO::set_dst_kernel</a></div><div class="ttdeci">virtual void set_dst_kernel(raft::kernel *const k)=0</div></div>
<div class="ttc" id="class_f_i_f_o_html_a43ad12d67e3611fafae4d6ed862c60b9"><div class="ttname"><a href="class_f_i_f_o.html#a43ad12d67e3611fafae4d6ed862c60b9">FIFO::allocate</a></div><div class="ttdeci">T &amp; allocate()</div><div class="ttdef"><b>Definition:</b> fifo.hpp:97</div></div>
<div class="ttc" id="class_f_i_f_o_html_ab3e42eddd74c0c5ce4a640c0cc022245"><div class="ttname"><a href="class_f_i_f_o.html#ab3e42eddd74c0c5ce4a640c0cc022245">FIFO::local_insert</a></div><div class="ttdeci">virtual void local_insert(void *ptr_begin, void *ptr_end, const raft::signal &amp;signal, const std::size_t iterator_type)=0</div></div>
<div class="ttc" id="class_f_i_f_o_html_a6edc6a38e9cb2e13eae8afe0703236d7"><div class="ttname"><a href="class_f_i_f_o.html#a6edc6a38e9cb2e13eae8afe0703236d7">FIFO::local_pop_range</a></div><div class="ttdeci">virtual void local_pop_range(void *ptr_data, std::size_t n_items)=0</div></div>
<div class="ttc" id="class_f_i_f_o_html_a8056adb06fadf2b7aae4d9858795be45"><div class="ttname"><a href="class_f_i_f_o.html#a8056adb06fadf2b7aae4d9858795be45">FIFO::local_peek_range</a></div><div class="ttdeci">virtual void local_peek_range(void **ptr, void **sig, const std::size_t n_items, std::size_t &amp;curr_pointer_loc)=0</div></div>
<div class="ttc" id="class_f_i_f_o_html_afc960790e2803da85fa24e64c61c38b5"><div class="ttname"><a href="class_f_i_f_o.html#afc960790e2803da85fa24e64c61c38b5">FIFO::local_peek</a></div><div class="ttdeci">virtual void local_peek(void **ptr, raft::signal *signal)=0</div></div>
<div class="ttc" id="class_f_i_f_o_html_a1f898343d6c6caf98f5434964d43f627"><div class="ttname"><a href="class_f_i_f_o.html#a1f898343d6c6caf98f5434964d43f627">FIFO::local_recycle</a></div><div class="ttdeci">virtual void local_recycle(const std::size_t range)=0</div></div>
<div class="ttc" id="class_f_i_f_o_html_a4eebb934a2d29c17916eb21db85fd39d"><div class="ttname"><a href="class_f_i_f_o.html#a4eebb934a2d29c17916eb21db85fd39d">FIFO::peek_range</a></div><div class="ttdeci">auto peek_range(const std::size_t n) -&gt; autorelease&lt; T, peekrange &gt;</div><div class="ttdef"><b>Definition:</b> fifo.hpp:314</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Oct 12 2015 12:16:50 for RaftLib by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.9.1
</small></address>
</body>
</html>
